home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSyyyyssss::::::::HHHHoooossssttttnnnnaaaammmmeeee((((3333))))22223333////JJJJuuuullll////99998888 ((((ppppeeeerrrrllll 5555....000000005555,,,, ppppaaaattttcccchhhh 00002222)))) SSSSyyyyssss::::::::HHHHoooossssttttnnnnaaaammmmeeee((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- Sys::Hostname - Try every conceivable way to get hostname
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- use Sys::Hostname;
- $host = hostname;
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Attempts several methods of getting the system hostname and
- then caches the result. It tries syscall(SYS_gethostname),
- `hostname`, `uname -n`, and the file /_c_o_m/_h_o_s_t. If all that
- fails it croaks.
-
- All nulls, returns, and newlines are removed from the
- result.
-
- AAAAUUUUTTTTHHHHOOOORRRR
- David Sundstrom <_s_u_n_d_s@_a_s_i_c_t_e_s_t._s_c._t_i._c_o_m>
-
- Texas Instruments
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 1 (printed 10/23/98)
-
-
-
-